package com.base.common.edu.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author Maple.Chen
 * @Description 学生账户变动明细实体
 * @Date 18:05 2021/1/29
 **/
@Data
@ApiModel(description = "学生账户变动明细实体")
@JsonIgnoreProperties(value = {"handler"})
public class StuAccountLog implements Serializable {

    private static final long serialVersionUID = -2976187346050266894L;
    @ApiModelProperty( value = "学生账户变动明细ID")
    private String accLogId;
    @ApiModelProperty( value = "对应学生实体")
    private Student student;
    @ApiModelProperty( value = "交易类型（1：支出[payout],2：收入[income],3：充值[top up],4：提现[withdraw]）")
    private Integer accType;
    @ApiModelProperty( value = "交易说明")
    private String accExplain;
    @ApiModelProperty( value = "交易金额")
    private BigDecimal amountPaid;
    @ApiModelProperty( value = "交易后应剩金额[Balance After Transaction]")
    private BigDecimal afterSurplus;
    @ApiModelProperty( value = "交易创建时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

}
